package com.iov.failurelog.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.iov.failurelog.mapper.TbFailurelogMapper;
import com.iov.failurelog.domain.TbFailurelog;
import com.iov.failurelog.service.ITbFailurelogService;

/**
 * 故障日志Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-11-22
 */
@Service
public class TbFailurelogServiceImpl implements ITbFailurelogService 
{
    @Autowired
    private TbFailurelogMapper tbFailurelogMapper;

    /**
     * 查询故障日志
     * 
     * @param id 故障日志主键
     * @return 故障日志
     */
    @Override
    public TbFailurelog selectTbFailurelogById(Long id)
    {
        return tbFailurelogMapper.selectTbFailurelogById(id);
    }

    /**
     * 查询故障日志列表
     * 
     * @param tbFailurelog 故障日志
     * @return 故障日志
     */
    @Override
    public List<TbFailurelog> selectTbFailurelogList(TbFailurelog tbFailurelog)
    {
        return tbFailurelogMapper.selectTbFailurelogList(tbFailurelog);
    }

    /**
     * 新增故障日志
     * 
     * @param tbFailurelog 故障日志
     * @return 结果
     */
    @Override
    public int insertTbFailurelog(TbFailurelog tbFailurelog)
    {
        return tbFailurelogMapper.insertTbFailurelog(tbFailurelog);
    }

    /**
     * 修改故障日志
     * 
     * @param tbFailurelog 故障日志
     * @return 结果
     */
    @Override
    public int updateTbFailurelog(TbFailurelog tbFailurelog)
    {
        return tbFailurelogMapper.updateTbFailurelog(tbFailurelog);
    }

    /**
     * 批量删除故障日志
     * 
     * @param ids 需要删除的故障日志主键
     * @return 结果
     */
    @Override
    public int deleteTbFailurelogByIds(Long[] ids)
    {
        return tbFailurelogMapper.deleteTbFailurelogByIds(ids);
    }

    /**
     * 删除故障日志信息
     * 
     * @param id 故障日志主键
     * @return 结果
     */
    @Override
    public int deleteTbFailurelogById(Long id)
    {
        return tbFailurelogMapper.deleteTbFailurelogById(id);
    }
}
